#! /usr/bin/python
# Copyright (C) 2010  Johan Jordaan (www.johanjordaan.co.za)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

# Todo List
#
from constants import *
from mapper import Mapper

CARDS = Mapper([ {ID          : 'MultiverseID'}
                ,{NAME        : 'Name'}
                ,{COST        : 'Cost'}
                ,{HASCOST     : 'HasCost'}
                ,{COLOR       : 'Color'}
                ,{CMC         : 'ConvertedManaCost'}
                ,{ISGOLD      : 'IsGold'}
                ,{TYPE        : 'Type'}
                ,{PT          : 'PT'}
                ,{P           : 'Power'}
                ,{T           : 'Toughness'	}
                ,{HASVP       : 'HasVariablePower'	}
                ,{HASVT       : 'HasVariableToughness'}
                ,{LOYALTY     : 'Loyalty'}
                ,{TEXT        : 'Text'}   
               ]
              )

CARDS_INDEX = Mapper([ {NAME  : 'Name'}
                     ]
                    )
              
SETS = Mapper([ {NAME : 'Name'}
              ]
             )

TYPES = Mapper([ {NAME : 'Name'}
               ]
              )

CARDTYPES = Mapper  ([ {CARDNAME  : 'CardName'}
                      ,{TYPENAME  : 'TypeName'}
                     ]
                    )

SUBTYPES = Mapper([ {NAME : 'Name'}
                  ]
                 )

CARDSUBTYPES = Mapper([ {CARDNAME    : 'CardName'}
                       ,{SUBTYPENAME : 'SubTypeName'}
                      ]
                     )
                 
SUPERTYPES = Mapper([ {NAME : 'Name'}
                    ]
                   )

CARDSUPERTYPES = Mapper([ {CARDNAME      : 'CardName'}
                         ,{SUPERTYPENAME : 'SuperTypeName'}
                      ]
                     )
                   
             
SETCARDS = Mapper ([ {SETNAME   : 'SetName'}
                    ,{CARDNAME  : 'CardName'}
                    ,{RARITY    : 'Rarity'}
                   ]
                  )
             
SETCARDS_INDEX = Mapper ([ {CARDNAME : 'CardName'}
                         ]
                        )
         